import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqCrossBossJoinInfoHelper } from "./SeqCrossBossJoinInfoHelper";
type int = number;
//class SCrossBossJoinInfos
    
    export  class SCrossBossJoinInfos extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossBossJoinInfos();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.groupId);
            arg1.writeInt(this.copyType);
            SeqCrossBossJoinInfoHelper.write(arg1, this.crossBossJoinInfos);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.groupId = arg1.readInt();
            this.copyType = arg1.readInt();
            this.crossBossJoinInfos = SeqCrossBossJoinInfoHelper.read(arg1);
            return;
        }

        public /* const */_type: int=561;

        public /* var */groupId: int;

        public /* var */copyType: int;

        public /* var */crossBossJoinInfos: Array<any>;

        public static /* var */_regist: SCrossBossJoinInfos;
    }

            SCrossBossJoinInfos._regist = new SCrossBossJoinInfos(true);
        